Skip to content

Conversation

makslevental
Copy link
Contributor

@makslevental makslevental commented Aug 28, 2025

This PR turns on automatic type stub generation (rather than relying on hand-written/updated stubs). It uses nanobind's stubgen facility. If you would like to enable this functionality you can add GENERATE_TYPE_STUBS to declare_mlir_python_extension .

@makslevental makslevental force-pushed the users/makslevental/stubgen branch 30 times, most recently from 92b0650 to 7e6569c Compare August 30, 2025 01:53
@makslevental makslevental force-pushed the users/makslevental/stubgen branch 3 times, most recently from bf19c67 to 340bb9f Compare September 4, 2025 18:46
@makslevental
Copy link
Contributor Author

Okay cool with nanobind releasing 2.9.0 today we're good to go here. So I'm calling for official review/stamp :)

Copy link
Contributor

@ingomueller-net ingomueller-net left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but other should chime in as well.

@makslevental makslevental force-pushed the users/makslevental/stubgen branch from 340bb9f to 33d52b9 Compare September 5, 2025 15:53
@makslevental makslevental enabled auto-merge (squash) September 5, 2025 15:57
@makslevental makslevental merged commit 22c2e15 into main Sep 5, 2025
10 checks passed
@makslevental makslevental deleted the users/makslevental/stubgen branch September 5, 2025 16:38
rupprecht added a commit that referenced this pull request Sep 5, 2025
* Nanobind >= 2.9 is required now. Use 2.9.2
* Remove pyi filegroups that now refer to deleted files
Muzammiluddin-Syed-ECE added a commit to iree-org/llvm-project that referenced this pull request Sep 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants